package cn.tedu.dimanage.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Classname: DonationAddNewDTO
 * @Author: bromide
 * @CreateTime: 2022/6/27--20:13
 * @Version: V1.0
 * @Description:
 */
@Data
public class DonationAddNewDTO implements Serializable {
    @NotNull(message = "提交捐献申请失败,请提交物资名称")
    private String itemName;
    private String description;
    // todo 添加一个只能是数字的正则
    @NotNull(message = "提交捐献申请失败,请提交捐赠数量")
    private Long count;
    private Long userId;
    @NotNull(message = "提交捐献申请失败,请提交物资照片")
    private String img;
}